package com.boot.rabbbitmqlistener.listener;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
@RabbitListener(queues = {"topic.message"})
public class MsgReceiver {

    @RabbitHandler()
    public void handler(String str) {
        System.out.println("Msg" + str);
    }
}
